from peewee import *
from model import Mysql


class Project(Model):
    """
    `id` int unsigned NOT NULL AUTO_INCREMENT,
    `name` varchar(50) NOT NULL,
    `update_time` date NOT NULL,
    `status` tinyint(1) NOT NULL,
    PRIMARY KEY (`id`)
    """
    id = IntegerField(primary_key=True)
    name = CharField(null=False)
    update_time = DateTimeField(null=False)
    status = BooleanField(null=False)

    class Meta:
        database = Mysql.db


if __name__ == '__main__':
    def add(x, y, z):
        print(x, y, z)

    add((1, 2, 3))
